<!DOCTYPE html>
<html>
{% include 'common.html' %}
<body>
<div>
    <!--主体内容-->
    <div class="page-content-wrap">
        <div class="layui-form-item">
            <div class="layui-inline tool-btn">
                <button class="layui-btn layui-btn-small layui-btn-normal addBtn hidden-xs" id="add_bookType_btn"><i
                        class="layui-icon">&#xe654;</i></button>
            </div>
        </div>
        <div class="layui-form" id="table-list">
            <table class="layui-hide" id="bookTypeTable" lay-filter="bookType_table_tool_bar_filter" ></table>
        </div>
    </div>
    {% include 'common.html' %}
    <div id="template_add" style="display:none;">
        <form class="layui-form" action="" lay-filter="" id="add_bookType_form">
            <div class="layui-form-item">
                <label class="layui-form-label">类别名称</label>
                <div class="layui-input-inline">
                    <input type="text" id="book_type_name_add" placeholder="请输入" autocomplete="off"
                           class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">可借次数</label>
                <div class="layui-input-inline">
                    <input type="text" id="borrow_days_add" placeholder="请输入" autocomplete="off"
                           class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button type="button" class="layui-btn layui-btn-normal" id="add_bookType_confirm_btn">确定</button>
                    <button type="button" class="layui-btn layui-btn-normal" id="add_bookType_quit_btn">取消</button>
                </div>
            </div>
        </form>
    </div>
    <div id="template_edit" style="display:none;">
        <form class="layui-form" action="" lay-filter="" id="edit_bookType_form">
            <input type="hidden" id="book_type_id">
            <div class="layui-form-item">
                <label class="layui-form-label">类别名称</label>
                <div class="layui-input-inline">
                    <input type="text" id="book_type_name_edit" placeholder="请输入" autocomplete="off"
                           class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">可借次数</label>
                <div class="layui-input-inline">
                    <input type="text" id="borrow_days_edit" placeholder="请输入" autocomplete="off"
                           class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button type="button" class="layui-btn layui-btn-normal" id="edit_bookType_confirm_btn">确定</button>
                    <button type="button" class="layui-btn layui-btn-normal" id="edit_bookType_quit_btn">取消</button>
                </div>
            </div>
        </form>
    </div>
    <script type="text/html" id="bookType_table_tool_bar">
        <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
        <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>
    </script>
    <script src="/static/admin/jslib/bookType.js" type="text/javascript" charset="utf-8"></script>
</div>
</body>
</html>
